/* This is the main controller for manage content, popin.... */

app.AppRouter = Backbone.Router.extend({
	
	initialize:function () {
		this.currentView = null;	
    },

    routes:{
        "":"init",
		"home":"init"
    },

    init:function () {	   
	     
       this.build();
    },
	
	build:function(){
		
		if (this.currentView) this.currentView.destroy();
		app.views.homeView = new app.Views.HomeView();
		this.currentView = app.views.homeView;
		app.routeur.navigate("home", false);						
		
	},

	uploadPhoto:function(){

		

	},
	
	onCompleteFeed:function(){/*console.log("Feed > ",facebook.feed);*/}	

});